const COMMIT_TYPE_OPTIONS = [
  {
    value: 'PREPARE',
    label: '商品准入'
  },
  {
    value: 'ADDSKU',
    label: 'SKU准入'
  },
  {
    value: 'supplyGoodsMainSupply',
    label: '修改主供'
  },
  {
    value: 'supplyGoodsStop',
    label: '停供'
  },
  {
    value: 'supplyGoodsRecover',
    label: '恢复供货'
  },
  {
    value: 'supplyPrice',
    label: '修改进价（单计量）'
  },
  {
    value: 'supplySteelPrice',
    label: '修改进价（多计量）'
  },
  {
    value: 'supplyPriceAndRefCity',
    label: '修改参照城市（单计量）'
  },
  {
    value: 'supplySteelPriceAndRefCity',
    label: '修改参照城市（多计量）'
  },
  {
    value: 'batchModifySupplyPriceRecord',
    label: '批量修改进价'
  },
  {
    value: 'supplyMorePrice',
    label: '新增多供进价（单计量）'
  },
  {
    value: 'supplyMoreSteelPrice',
    label: '新增多供进价（多计量）'
  },
  {
    value: 'arrivalCycle',
    label: '修改到货周期'
  },
]
const formItemList = [
  {
    prop: 'skuNo',
    label: 'SKU编码',
    type: 'input',
    matchType: 'EQ'
  },
  {
    prop: 'spuNo',
    label: '商品名称',
    type: 'select',
    remote: true,
    filterable: true,
    multiple: true,
    reserveKeyword: true,
    matchType: 'IN'
  },
  {
    prop: 'recordCommitType',
    label: '变更类型',
    type: 'select',
    options: COMMIT_TYPE_OPTIONS,
    multiple: true,
    matchType: 'IN'
  },
  {
    prop: 'supplyUuid',
    label: '供应商编码',
    type: 'input',
    matchType: 'EQ'
  },
  {
    prop: 'saleProvinceName',
    label: '销售省',
    type: 'input',
  },
  {
    prop: 'recordOpeTime',
    label: '变更时间',
    type: 'datePicker',
    datePickerType: 'datetimerange',
    defaultTime: ['00:00:00', '23:59:59']
  },
  {
    prop: 'archivalDataSearch',
    label: '归档数据查询',
    type: 'select',
    options: [
      { label: '是', value: '1' },
      { label: '否', value: '2' }
    ]
  },
]
const tableColumns = [
  {
    title: '变更时间',
    key: 'recordOpeTime',
    sortable: true
  },
  {
    title: '变更类型',
    key: 'recordCommitTypeStr'
  },
  {
    title: '提交人',
    key: 'pusherName',
  },
  {
    title: '单据号',
    key: 'recordNo'
  },
  {
    title: '供应商编码',
    key: 'supplyUuid',
  },
  {
    title: '供应商名称',
    key: 'supplyName'
  },
  {
    title: 'SKU编码',
    key: 'skuNo',
  },
  {
    title: '商品名称',
    key: 'productName'
  },
  {
    title: '规格',
    key: 'specDetail',
  },
  {
    title: '计量单位',
    key: 'mainUnit'
  },
  {
    title: '省',
    key: 'saleProvinceName',
  },
  {
    title: '城市',
    key: 'saleCityName'
  },
  {
    title: '区域',
    key: 'saleAreaName',
  },
  {
    title: '进价',
    key: 'mainPurchasePrice'
  },
  {
    title: '运费折合比例',
    key: 'freightRatio',
  },
  {
    title: '加工费折合比例',
    key: 'processChargesRatio'
  },
  {
    title: '包装费折合比例',
    key: 'packRatio',
  },
  {
    title: '返利折合比例',
    key: 'rebateRatio'
  },
  {
    title: '成本价',
    key: 'mainUnitCostPrice',
  },
  {
    title: '是否供货',
    key: 'isSupplyStr'
  },
  {
    title: '是否停供',
    key: 'isStopSupplyStr'
  },
  {
    title: '是否主供',
    key: 'isMainSupplyStr'
  },
  {
    title: '到货周期',
    key: 'arrivalDays',
  },
  {
    title: '参照城市',
    key: 'templateCityName'
  },
  {
    title: '进价参照比例',
    key: 'buyPriceRatio',
  },
  {
    title: '成本价参照比例',
    key: 'costPriceRatio'
  },
]
export {
  formItemList,
  tableColumns
}
